/*
 * @LastEditTime: 2023-10-25 14:32:09
 * @FilePath: \bdcar-net\src\api\alarmProcess\alarmProcess.js
 */
import request from '@/utils/request'

// 获取用户订阅报警类型
export async function getAlarmTypeList() {
  let url = "/comlbs/userAlarmType/getUserAlarmTypes";
  return request({
    url: url,
    method: "post",
  })
}
// 获取所有报警类型
export async function getAlarmTypeAll(data) {
  let url = "/comlbs/alarmType/listAll";
  return request({
    url: url,
    method: "get",
    params: data
  })
}
// 更新用户报警订阅
export async function saveAlarmType(query) {
  let url = "/comlbs/userAlarmType";
  return request({
    url: url,
    method: "post",
    data: query
  })
}
// 报警记录列表
export async function getAlarmRecordList(query) {
  let url = "/comlbs/alarmHandleRecord/list";
  return request({
    url: url,
    method: "GET",
    params: query
  })
}
// 报警处理
export async function saveAlarmHandle(query) {
  let url = "/comlbs/alarmHandleRecord/handleAlarm";
  return request({
    url: url,
    method: "post",
    data: query
  })
}
